package com.example.batchprocessing.springbatch;

import com.example.batchprocessing.entity.People;
import com.example.batchprocessing.process.DealPeople;
import org.springframework.batch.item.ItemProcessor;

/**
  *处理数据器
  *ItemProcessor<People, DealPeople>
  *People为传入数据，DealPeople为处理后返回数据
  */
public class JdbcItemProcessor implements ItemProcessor<People, DealPeople> {

    public DealPeople process(People bean) throws Exception {
        // Bean bean 为读操作数据
        DealPeople deal = new DealPeople();

        return deal;

    }
}
